package descentFly.away3D4.Generator
{
	import UIFree.ObjectEvent;
	
	import away3d.entities.Mesh;
	
	import descentFly.away3D4.df_awaySpace;
	import descentFly.away3D4.df_baseSpaceElement;
	
	public class df_baseParser extends df_baseSpaceElement {
		public function df_baseParser(a_space:df_awaySpace, a_options:Object) {
			super(a_space, a_options);
			Space.points.addEventListener(options.parse_event, doParse);
		}
		
		protected function parseElement(m: Mesh): void {
		}
		
		private function doParse(e: ObjectEvent): void {
			parseElement(e.object as Mesh);
		}
		
		override protected function removeEvents():void {
			Space.points.removeEventListener(options.parse_event, doParse);
			super.removeEvents();
		}
	}
}